package com.explorati.design_pattern.structural.proxy.cglib;

import com.explorati.design_pattern.structural.proxy.IOrderService;
import com.explorati.design_pattern.structural.proxy.Order;
import com.explorati.design_pattern.structural.proxy.OrderServiceImpl;
import com.explorati.design_pattern.structural.proxy.dynamicproxy.OrderServiceDynamicProxy;

public class Test {
	public static void main(String[] args) {
		Order order = new Order();
		order.setUserId(1);

		IOrderService CglibProxy = (IOrderService) new CglibProxy(new OrderServiceImpl())
				.getProxy();
		CglibProxy.saveOrder(order);
	}
}
